//
//  SerOrderDetailFieldCell.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/30.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "SerOrderDetailFieldCell.h"

@implementation SerOrderDetailFieldCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

/*
 {
     bhmTransverseImg = "";
     goodsImg = "";
     mediaList = "";
     ogBusinessToAccount = "";
     ogCreateTime = "2020-09-11 11:16:42";
     ogCreateUser = 7980277871100850176;
     ogCustomerCashBack = "";
     ogDeposit = "";
     ogGoodsId = 7989773892200706048;
     ogGoodsMenuId = 7988710127727292416;
     ogGoodsMenuName = "\U6ee1\U6c49\U5168\U5e2d2";
     ogGoodsName = "\U5c0f\U6c6a\U6d4b\U8bd5";
     ogGoodsNum = 4;
     ogGoodsType = 3;
     ogId = 7992598549139304448;
     ogIsDel = 2;
     ogOrderId = F2020091111164232484;
     ogPayPrice = 18000;
     ogPlatformCommission = "";
     ogRecommenderSubCommission = "";
     ogRemark = "";
     ogSellerId = 7991273901160689664;
     ogSellerName = "\U76fc\U76fc\U9152\U5e97";
     ogTotal = 18000;
     ogUpdateTime = "";
     ogUpdateUser = "";
     sellerBanquetHallMenu = "";
     sellerGoodsSpecs = "";
     specImage = "";
     specName = "";
 }
 */

- (void)fillCellWithModel:(CommonOrderDetailModel *)model {
    
    CommonOrderGoodsModel *goodsModel = model.userOrderGoodsVoList.firstObject;
    
    self.storeNameLab.text = model.uodSellerName;
    [self.mainImageView sd_setImageWithURL:[NSURL URLWithString:goodsModel.goodsImg] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    self.mainTitleLab.text = goodsModel.ogGoodsName;
}

@end
